//
//  MovieDatasHeaderView.m
//  觅影
//
//  Created by Zeus on 16/4/11.
//  Copyright © 2016年  陶虹. All rights reserved.
//

#import "MovieDatasHeaderView.h"

@implementation MovieDatasHeaderView

- (id)initWithReuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithReuseIdentifier:reuseIdentifier]) {
        self.headerBackImage = [[UIView alloc]initWithFrame:CGRectMake(0, 0, KWIDTH, 230)];
        self.headerBackImage.backgroundColor = [UIColor colorWithRed:171/255.0 green:166/255.0 blue:209/255.0 alpha:1];
        [self.contentView addSubview:_headerBackImage];
        
        self.picView = [[UIImageView alloc]initWithFrame:CGRectMake(55*2, 10, KWIDTH - 55 * 4, 230)];
        self.picView.userInteractionEnabled = YES;
        [self.contentView addSubview:_picView];
        
        self.tap = [[UITapGestureRecognizer alloc]init];
        self.tap.enabled = YES;
        [self.picView addGestureRecognizer:_tap];
        
        self.titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(20, 250, KWIDTH - 20*2, 30)];
        self.titleLabel.textAlignment = NSTextAlignmentCenter;
        self.titleLabel.font = [UIFont systemFontOfSize:14];
        [self.contentView addSubview:_titleLabel];
    
        self.want_watch = [[UIButton alloc]initWithFrame:CGRectMake(66, 250 + 40, KWIDTH - 66*2, 40)];
        self.want_watch.titleLabel.font = [UIFont systemFontOfSize:14];
        [self.want_watch setTitle:@"加入想看清单" forState:UIControlStateNormal];
        [self.want_watch setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
        self.want_watch.backgroundColor = [UIColor colorWithRed:152/255.0 green:167/255.0 blue:232/255.0 alpha:1];
        [self.contentView addSubview:_want_watch];
        
    }
    return self;
}


@end
